package com.twinkle.framework.common.exception;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BusinessException extends RuntimeException {
    private String errorCode;
    private String errorMessage;
    public BusinessException(BaseExceptionInterface baseException) {
        this.errorCode = baseException.getErrorCode();
        this.errorMessage = baseException.getErrorMessage();
    }
}
